package com.example.demo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TryApplication {
	public static void main(String[] args) {
		ApplicationContext acx= new ClassPathXmlApplicationContext("bean.xml");
		//获取IntroduceDemo实例
		IntroduceDemo id=acx.getBean("IntroduceDemo",IntroduceDemo.class);
		//调用方法
		id.introduce();
	}

}
